using Xtensive.Orm;

namespace SalesPoint.Model
{
  [TableMapping("Shippers")]
  [HierarchyRoot]
  public class Shipper : Entity
  {
    [Field, FieldMapping("ShipperId"), Key]
    public int Id { get; private set; }

    [Field(Length = 40)]
    public string CompanyName { get; set; }

    [Field(Length = 24)]
    public string Phone { get; set; }

    public Shipper(Session session)
      : base(session)
    {
      
    }
  }
}